home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 60 / IOPROG_60.ISO / soft / c++ / gsl-1.1.1-setup.exe / {app} / src / roots / test.h < prev   
Encoding:
Text File  |  2001-11-01  |  3.1 KB  |  130 lines

  1. /* roots/test.h
  2.  * 
  3.  * Copyright (C) 1996, 1997, 1998, 1999, 2000 Reid Priedhorsky, Brian Gough
  4.  * 
  5.  * This program is free software; you can redistribute it and/or modify
  6.  * it under the terms of the GNU General Public License as published by
  7.  * the Free Software Foundation; either version 2 of the License, or (at
  8.  * your option) any later version.
  9.  * 
  10.  * This program is distributed in the hope that it will be useful, but
  11.  * WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.  * General Public License for more details.
  14.  * 
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program; if not, write to the Free Software
  17.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  */
  19.  
  20. gsl_function create_function (double (*f)(double, void *)) ;
  21. gsl_function_fdf create_fdf (double (*f)(double, void *),
  22.                              double (*df)(double, void *),
  23.                              void (*fdf)(double, void *, double *, double *));
  24.  
  25. void
  26.   test_macros (void);
  27.  
  28. void
  29.   test_roots (void);
  30.  
  31. void
  32.   test_poly (void);
  33.  
  34. void
  35. test_f (const gsl_root_fsolver_type * T, 
  36.     const char * description, gsl_function *f,
  37.     double lower_bound, double upper_bound, double correct_root);
  38.  
  39. void
  40. test_f_e (const gsl_root_fsolver_type * T, const char * description, 
  41.       gsl_function *f,
  42.       double lower_bound, double upper_bound, double correct_root);
  43.  
  44. void
  45. test_fdf (const gsl_root_fdfsolver_type * T, const char * description, 
  46.       gsl_function_fdf *fdf, double root, double correct_root);
  47.  
  48. void
  49. test_fdf_e (const gsl_root_fdfsolver_type * T, const char * description, 
  50.         gsl_function_fdf *fdf, double root, double correct_root);
  51.  
  52.  
  53. void
  54.   usage (void);
  55.  
  56. void
  57.   error_handler (const char *reason, const char *file, int line);
  58.  
  59. double
  60.   func1 (double x, void * p);
  61.  
  62. double
  63.   func1_df (double x, void * p);
  64.  
  65. void
  66.   func1_fdf (double x, void * p, double *y, double *yprime);
  67.  
  68. double
  69.   func2 (double x, void * p);
  70.  
  71. double
  72.   func2_df (double x, void * p);
  73.  
  74. void
  75.   func2_fdf (double x, void * p, double *y, double *yprime);
  76.  
  77. double
  78.   func3 (double x, void * p);
  79.  
  80. double
  81.   func3_df (double x, void * p);
  82.  
  83. void
  84.   func3_fdf (double x, void * p, double *y, double *yprime);
  85.  
  86. double
  87.   func4 (double x, void * p);
  88.  
  89. double
  90.   func4_df (double x, void * p);
  91.  
  92. void
  93.   func4_fdf (double x, void * p, double *y, double *yprime);
  94.  
  95. double
  96.   func5 (double x, void * p);
  97.  
  98. double
  99.   func5_df (double x, void * p);
  100.  
  101. void
  102.   func5_fdf (double x, void * p, double *y, double *yprime);
  103.  
  104. double
  105.   func6 (double x, void * p);
  106.  
  107. double
  108.   func6_df (double x, void * p);
  109.  
  110. void
  111.   func6_fdf (double x, void * p, double *y, double *yprime);
  112.  
  113. double
  114.   sin_f (double x, void * p);
  115.  
  116. double
  117.   sin_df (double x, void * p);
  118.  
  119. void
  120.   sin_fdf (double x, void * p, double *y, double *yprime);
  121.  
  122. double
  123.   cos_f (double x, void * p);
  124.  
  125. double
  126.   cos_df (double x, void * p);
  127.  
  128. void
  129.   cos_fdf (double x, void * p, double *y, double *yprime);
  130.